package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.RoutinePatientRegist;
import com.zhijian.medical.entity.vo.request.RoutinePatientRegistSearchVo;
import com.zhijian.medical.entity.vo.response.RoutinePatientRegistVo;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface RoutinePatientRegistMapper {
    int deleteByPrimaryKey(Long id);

    int insert(RoutinePatientRegist record);

    int insertSelective(RoutinePatientRegist record);

    RoutinePatientRegist selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(RoutinePatientRegist record);

    int updateByBlhAndType(RoutinePatientRegist record);

    int updateByPrimaryKey(RoutinePatientRegist record);

    /**
     * 查询总数
     *
     * @param routinePatientRegistSearchVo
     * @return
     */
    int count(RoutinePatientRegistSearchVo routinePatientRegistSearchVo);

    /**
     * 查询列表
     *
     * @param routinePatientRegistSearchVo
     * @return
     */
    List<RoutinePatientRegistVo> selectList(RoutinePatientRegistSearchVo routinePatientRegistSearchVo);

    /**
     * 查询单个
     *
     * @param routinePatientRegistSearchVo
     * @return
     */
    RoutinePatientRegistVo selectOne(RoutinePatientRegistSearchVo routinePatientRegistSearchVo);

    /**
     * 根据ID查询vo
     *
     * @param id
     * @return
     */
    RoutinePatientRegistVo selectVoById(Long id);

    /**
     * 批量删除
     *
     * @param idList
     * @return
     */
    void deleteByIdList(@Param("idList") List<Long> idList);

    /**
     * 动态删除
     *
     * @param routinePatientRegistSearchVo
     * @return
     */
    void deleteByCondition(RoutinePatientRegistSearchVo routinePatientRegistSearchVo);

    /**
     * 批量新增
     *
     * @param entities
     * @return
     */
    int insertBatch(@Param("entities") List<RoutinePatientRegist> entities);

    /**
     * 根据PatientId查询列表
     *
     * @param patientId
     * @return
     */
    List<RoutinePatientRegistVo> selectListByPatientId(@Param("patientId") Long patientId);
}